package shayu.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import shayu.product.entity.CategoryEntity;
import shayu.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaoshayu
 * @email xiaoshayu@qq.copm
 * @date 2023-05-03 22:48:57
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    void updateCascade(CategoryEntity categoryEntity);

    Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Category();

    Map<String,List<Catelog2Vo>> getDataFromDb();

    Map<String, List<Catelog2Vo>> getCatalogJsonFromDbWithRedisLock();


}

